﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TSB.FarmPowerShellWizard.Entities
{
    public class TSBFarm
    {
        public string DatabaseName;
        public string DatabaseServer;
        public string FarmUsername;
        public string AdminDatabaseName;

        public int CentralAdminPort;

        public List<string> Servers;
        public List<string> ManagedAccounts;

        public string ServersAsString
        {
            get
            {
                if (Servers == null || Servers.Count == 0)
                {
                    return string.Empty;
                }

                var asString = string.Empty;

                foreach (var srv in Servers)
                {
                    asString += srv + ",";
                }

                return asString;
            }
        }
    }
}
